package com.qq.day02.work2;

public abstract class Employee {
    private String name;//姓名
    private String workid;//工号
    private String dept;//部门

    public Employee() {
    }

    public Employee(String name, String workid, String dept) {
        this.name = name;
        this.workid = workid;
        this.dept = dept;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getWorkid() {
        return workid;
    }

    public void setWorkid(String workid) {
        this.workid = workid;
    }

    public String getDept() {
        return dept;
    }

    public void setDept(String dept) {
        this.dept = dept;
    }
    abstract void showMsg();
}
